lib/remote: Fix compilation with --enable-experimental-api
authorPhilip Withnall <withnall@endlessm.com>
Fri, 19 May 2017 09:11:35 +0000 (10:11 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 19 May 2017 15:02:00 +0000 (15:02 +0000)
The whole ostree-remote.h file is only included in the public ostree.h
header if OSTREE_ENABLE_EXPERIMENTAL_API is defined, so there’s no need
to change the set of methods defined in it according to whether we’re
compiling with experimental API.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #875
Approved by: cgwalters

src/libostree/ostree-remote.h

index 5505bc1d95f0cea5770081b74284f08d1a2be60f..96fd45568e5f6a4f8c5e2000da310764b5729478 100644 (file)
@@ -48,17 +48,14 @@ G_BEGIN_DECLS
 typedef struct OstreeRemote OstreeRemote;
 #endif
 
-#ifdef OSTREE_ENABLE_EXPERIMENTAL_API
+#ifndef __GI_SCANNER__
 _OSTREE_PUBLIC
 GType ostree_remote_get_type (void) G_GNUC_CONST;
-#else
-#ifndef __GI_SCANNER__
 _OSTREE_PUBLIC
 OstreeRemote *ostree_remote_ref (OstreeRemote *remote);
 _OSTREE_PUBLIC
 void ostree_remote_unref (OstreeRemote *remote);
 #endif /* GI_SCANNER */
-#endif
 
 _OSTREE_PUBLIC
 const gchar *ostree_remote_get_name (OstreeRemote *remote);